﻿@{
    ViewBag.Title = "Add";
    Layout = "~/Views/Shared/_Master.cshtml";
}
@{
    IList<EWineShop.Service.Model.FoodCategoryModel> FoodCategory = ViewData["FoodCategory"] as List<EWineShop.Service.Model.FoodCategoryModel>;
    IList<EWineShop.Service.Model.FoodAttributeModel> FoodAttribute = ViewData["FoodAttribute"] as List<EWineShop.Service.Model.FoodAttributeModel>;
    IList<EWineShop.Service.Model.FoodDepartmentModel> FoodDepartment = ViewData["FoodDepartment"] as List<EWineShop.Service.Model.FoodDepartmentModel>;
    IList<EWineShop.Service.Model.FoodPracticeModel> FoodPractice = ViewData["FoodPractice"] as List<EWineShop.Service.Model.FoodPracticeModel>;
    IList<EWineShop.Service.Model.FoodTasteModel> FoodTaste = ViewData["FoodTaste"] as List<EWineShop.Service.Model.FoodTasteModel>;
    IList<EWineShop.Service.Model.FoodUnitModel> FoodUnit = ViewData["FoodUnit"] as List<EWineShop.Service.Model.FoodUnitModel>;
}
<h2>
    Add</h2>
名称<input id="txt" type="text" /></br> 价格<input id="Text1" type="text" /></br>
单位<select id="selFoodUnit" name="selFoodUnit">
     @foreach (var item in FoodUnit)
    { 
        <option value="@item.Name">@item.Name</option> 
    }
</select></br>
所属目录:<select id="selFoodDepartment" name="selFoodDepartment">
    @foreach (var item in FoodDepartment)
    { 
        <option value="@item.Name">@item.Name</option> 
    }
</select></br>
类别<select id="selFoodCategory" name="selFoodCategory">
    @foreach (var item in FoodCategory)
    { 
        <option value="@item.Name">@item.Name</option> 
    }
</select></br>
属性
 @foreach (var item in FoodAttribute)
    { 
     
       <input id="chkFoodAttribute"  name="chkFoodAttribute" type="checkbox"  value="@item.FoodAttributeID"/>@item.Name
    }
    </br>

做法<select id="selFoodPractice" name="selFoodPractice">
    @foreach (var item in FoodPractice)
    { 
        <option value="@item.Name">@item.Name</option> 
    }
</select></br>
口味<select id="selFoodTaste" name="selFoodTaste">
    @foreach (var item in FoodTaste)
    { 
        <option value="@item.Name">@item.Name</option> 
    }
</select></br>
上传图片
<input id="File1" type="file" /></br>
简介
<textarea id="txtRemark" name="txtRemark" cols="20" rows="2"></textarea>
